package com.ruyuan.seckilling.inventory.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * @author zhonghuashishan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CleanStockRequest implements Serializable {
    private static final long serialVersionUID = 986377306431871510L;

    private Long activityId;

    private List<Long> skuIds;

    public String validateParams() {
        if (Objects.isNull(activityId) || activityId <= 0 || Objects.isNull(skuIds)) {
            return "参数不合法";
        }
        return null;
    }

}